#if !defined(AFX_MANUALCONVEYORDLG_H__976083F6_F9E5_42FB_9D9D_FE19FDCE5143__INCLUDED_)
#define AFX_MANUALCONVEYORDLG_H__976083F6_F9E5_42FB_9D9D_FE19FDCE5143__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ManualConveyorDlg.h : header file
//
#include "Util\MinLabel.h"
#include "Util\MinButton.h"

class IIO;
class IConveyor;
class IAutoManager;
class CDMControlCenter;
class CErrorCodeData;
class CMoldingOHTDoc;
class CSystemData;
class ITrsLoadConveyor;
class ITrsUnloadConveyor;



/////////////////////////////////////////////////////////////////////////////
// CManualConveyorDlg dialog

#define MAX_BUTTON_SW		33


class CManualConveyorDlg : public CDialog
{
// Construction
private:
	IAutoManager* m_lnkAutoManager;
	IConveyor* m_lnkLoadConveyor;
	IConveyor* m_lnkUnloadConveyor;
	ITrsLoadConveyor* m_lnkTrsLoadConveyor;
	ITrsUnloadConveyor* m_lnkTrsUnloadConveyor;
	CSystemData* m_lnkSystemData;
	CErrorCodeData* m_lnkErrorCodeData;

	BOOL m_bErrorDisplay;

	BOOL m_bOldStatusPush[MAX_BUTTON_SW];
	BOOL StartInitFlag;

	UINT m_TimerID;
	BOOL m_TimerInitFlag;

public:
	void ErrorDisplay(int nErrorCode);
	void ButtonUpdate();
	void ButtonInitial();
	CManualConveyorDlg(IAutoManager* pAM, CDMControlCenter* pDMCC, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CManualConveyorDlg)
	enum { IDD = IDD_MANUALCONVEYORDLG_DIALOG };
	CMinButton	m_btnUnloadMagazineUnitBack;
	CMinButton	m_btnUnloadMagazineUnitFor;
	CMinButton	m_btnLoadMagazineUnitBack;
	CMinButton	m_btnLoadMagazineUnitFor;
	CMinButton	m_btnCarrierID;
	CMinButton	m_btnLotID;
	CMinLabel	m_sCarrierID;
	CMinLabel	m_sLotID;
	CMinButton	m_btnUnloadMagazineStopperUp;
	CMinButton	m_btnUnloadMagazineStopperDown;
	CMinButton	m_btnUnloadOutMZDetect;
	CMinButton	m_btnUnloadMagazineUnitLockUp;
	CMinButton	m_btnUnloadMagazineUnitLockDown;
	CMinButton	m_btnUnloadMagazineStateRightFor;
	CMinButton	m_btnUnloadMagazineStateLeftFor;
	CMinButton	m_btnUnloadMagazineStateRightBack;
	CMinButton	m_btnUnloadMagazineStateLeftBack;
	CMinButton	m_btnUnloadMagazineUnLock;
	CMinButton	m_btnUnloadMagazineLock;
	CMinButton	m_btnUnloadInMZDetect;
	CMinButton	m_btnUnloadCenteringFor;
	CMinButton	m_btnUnloadCenteringBack;
	CMinButton	m_btnLoadStopperUp;
	CMinButton	m_btnLoadStopperDown;
	CMinButton	m_btnLoadMagazineUnLock;
	CMinButton	m_btnLoadMagazineUnitLockUp;
	CMinButton	m_btnLoadMagazineUnitLockDown;
	CMinButton	m_btnLoadMagazineStateRightFor;
	CMinButton	m_btnLoadMagazineStateLeftFor;
	CMinButton	m_btnLoadMagazineStateRightBack;
	CMinButton	m_btnLoadMagazineStateLeftBack;
	CMinButton	m_btnLoadMagazineLock;
	CMinButton	m_btnLoadCenteringFor;
	CMinButton	m_btnLoadCenteringBack;
	CMinButton	m_bExit;
	CMinButton	m_btnLoadOutMZDetect;
	CMinButton	m_btnLoadInMZDetect;
	CMinButton	m_btnLoadCountMZDetect;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CManualConveyorDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CManualConveyorDlg)
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnRfidLotIdReading();
	afx_msg void OnRfidCarrierIdReading2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MANUALCONVEYORDLG_H__976083F6_F9E5_42FB_9D9D_FE19FDCE5143__INCLUDED_)
